package render;



public class RenderBlock {
	
	private float blockScale=1.0f;
	
public RenderBlock()
{
	float[] vertices = calculateCubeVectors();
	
	
}

public static void renderBlock()
{
	
}

public float getBoxSize() {
	return blockScale;
}

public void setBoxSize(float boxSize) {
	this.blockScale = boxSize;
}

/*
 * cartisian cordinates
 * 
 * 0,0,0
 * 0,1,0
 * 1,1,0
 * 1,0,0
 * 
 * 1,0,1
 * 0,0,1
 * 0,1,1
 * 1,1,1
 * 
 */
public float[] calculateCubeVectors()
{
float[] vectorArray = {
		1.0f,1.0f,-1.0f,
		-1.0f,1.0f, -1.0f,
		-1.0f, 1.0f, 1.0f,
		 1.0f, 1.0f, 1.0f,
		 
		 1.0f,-1.0f, 1.0f,
		 -1.0f,-1.0f, 1.0f,
		 -1.0f,-1.0f,-1.0f,
		 1.0f,-1.0f,-1.0f,
		 
		 1.0f, 1.0f, 1.0f,
		 -1.0f, 1.0f, 1.0f,
		 -1.0f,-1.0f, 1.0f,
		 1.0f,-1.0f, 1.0f,
		 
		 1.0f,-1.0f,-1.0f,
		 -1.0f,-1.0f,-1.0f,
		 -1.0f, 1.0f,-1.0f,
		 1.0f, 1.0f,-1.0f,
		 
		 -1.0f, 1.0f, 1.0f,
		 -1.0f, 1.0f,-1.0f,
		 -1.0f,-1.0f,-1.0f,
		 -1.0f,-1.0f, 1.0f,
		 
		 1.0f, 1.0f,-1.0f,
		 1.0f, 1.0f, 1.0f,
		 1.0f,-1.0f, 1.0f,
		 1.0f,-1.0f,-1.0f
		 
};

for(float v1: vectorArray )
{
	v1=v1*blockScale;
}


return vectorArray;	
	
}//end calculate vectors

}
